import { http } from '@/utils/http'

export const getFollowTaskListAPI = (data: any) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/todo/followTask/list',
    data,
  })
}

export const getFollowTaskAPI = (followtaskId: number | string) => {
  return http<any[]>({
    method: 'GET',
    url: '/mobile/todo/followTask/' + followtaskId,
  })
}

export const deleteFollowTaskAPI = (followtaskId: number | string) => {
  return http<any[]>({
    method: 'DELETE',
    url: '/mobile/todo/followTask/' + followtaskId,
  })
}

export const postAddFollowTaskAPI = (data: any) => {
  return http<any[]>({
    method: 'POST',
    url: '/mobile/todo/followTask',
    data,
  })
}
